package com.abort.task;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.PersistJobDataAfterExecution;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class DemoJob implements Job{
	private static final Logger LOGGER = LoggerFactory.getLogger(DemoJob.class) ;
	
    private String jobArg;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
    	LOGGER.info("执行定时任务... ...");
    }

    public void setJobArg(String jobArg) {
        this.jobArg = jobArg;
    }
    
    
   
    
}